-- GENERATED SPELL FOR [Bleeding Hollow Darkcaster] --


function spell0_17269(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(20754,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17269', 9000, 1)
end

function spell1_17269(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(36808,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17269', 9000, 1)
end

function spell2_17269(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(15241,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17269', 1500, 1)
end

function spell3_17269(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(36807,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17269', 1500, 1)
end

function Sorts_17269(pUnit, Event)
local choix_sorts_17269 = math.random(0, 3)
if choix_sorts_17269 == 0 then
pUnit:RegisterEvent('spell0_17269', 1, 1)
end
if choix_sorts_17269 == 1 then
pUnit:RegisterEvent('spell1_17269', 1, 1)
end
if choix_sorts_17269 == 2 then
pUnit:RegisterEvent('spell2_17269', 1, 1)
end
if choix_sorts_17269 == 3 then
pUnit:RegisterEvent('spell3_17269', 1, 1)
end
end

function mob17269_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17269', math.random(1500, 3000), 1)
end

function mob17269_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17269_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17269_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17269, 1, 'mob17269_Action')
RegisterUnitEvent(17269, 2, 'mob17269_Leave')
RegisterUnitEvent(17269, 3, 'mob17269_Kill')
RegisterUnitEvent(17269, 4, 'mob17269_Die')
